import ChildComp from './ChildComp.vue'

export default {
  components: {
    ChildComp
  },
  data() {
    return {
      parentTitle: 'Vue组件示例',
      parentMessage: '从父组件传递的消息',
      lastCount: 0,
      debugInfo: '组件交互调试信息'
    }
  },
  methods: {
    handleCountChange(newCount) {
      this.lastCount = newCount
      this.debugInfo = `子组件计数变更为: ${newCount}`
    }
  }
}
